<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>首页</title>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            /*我们不想看到超出盒子范围的图片，因此需要overflow：hidden；进行隐藏*/
            overflow: hidden;
            position: relative;
            width: 1000px;
            height: 150px;
            border: 0px solid #000;
            margin: 50px auto;
        }

        .box:hover ul {
            /*当鼠标放在图片上时能够暂停动画*/
            animation-play-state: paused;
        }

        ul {
            position: absolute;
            top: 0;
            left: 0;
            width: 20000px;
            height: 300px;
            animation: run 10s infinite linear;
        }

        li {
            float: left;
            width: 400px;
            height: 250px;
            list-style: none;
        }

        img {
            width: 400px;
            height:150px;
            max-width: 100%;
        }

        @keyframes run {
            0% {
                transform: translate(0);
            }
            100% {
                /*轮播宽度还是按照原来的7张图片进行设置，这样在播完7张图片后就会跳转回第一张*/
                transform: translate(-1200px);
            }
        }
        .bottom{
            font-size: 13px;
            color: #999999;
        }
        .button{
            padding: 0;
            float: right;
        }
        .clearfix:before,
        .clearfix:after{
            display: table;
            content: "";
        }

        .clearfix:after{
            clear: both;
        }
    </style>
</head>

<body>
<div id="app">
    <div class="box">
        <ul>
            <li><a href="display.html"><img src="../image/math1.png" alt=""></a></li>
            <li><a href="display.html "><img src="../image/flower.png" alt=""></a></li>
            <li><a href="display.html"><img src="../image/animal.png" alt=""></a></li>
            <li><a href="display.html"><img src="../image/mental.jpg" alt=""></a></li>
            <li><a href="display.html"><img src="../image/English1.jpg" alt=""></a></li>
            <!--解决滚动问题的关键在于最后加三张图片 使末尾留白有内容-->
            <li><a href="display.html"><img src="../image/math1.png" alt=""></a></li>
        </ul>
    </div>

    <h2>最新好课推荐</h2>
    <el-row :gutter="12">
        <el-col :span="4">
            <el-card shadow="hover" style="width:200px">
                <img src="../image/medicine.jpg">
                <div style="padding: 5px">
                    <span style="font-size: small">医学心理学</span>
                    <div class="bottom clearfit">
                        <el-button onclick="window.location.href='display.html'" type="button" class="button">查看</el-button>
                    </div>
                </div>
            </el-card>
        </el-col>
        <el-col :span="4">
            <el-card shadow="hover" style="width:200px">
                <img src="../image/flower.png">
                <div style="padding: 5px">
                    <span style="font-size: small">花卉学</span>
                    <div class="bottom clearfit">
                        <el-button onclick="window.location.href='display.html'" type="button" class="button">查看</el-button>
                    </div>
                </div>
            </el-card>
        </el-col>
        <el-col :span="4">
            <el-card shadow="hover" style="width:200px">
               <img src="../image/lisanshuxue.png">
                <div style="padding: 5px">
                    <span style="font-size: small">离散数学</span>
                    <div class="bottom clearfit">
                        <el-button onclick="window.location.href='display.html'" type="button" class="button">查看</el-button>
                    </div>
                </div>
            </el-card>
        </el-col>
        <el-col :span="4">
            <el-card shadow="hover" style="width:200px">
                <img src="../image/physics2.jpg">
                <div style="padding: 5px">
                    <span style="font-size: small">大学物理(下)</span>
                    <div class="bottom clearfit">
                        <el-button onclick="window.location.href='display.html'" type="button" class="button">查看</el-button>
                    </div>
                </div>
            </el-card>
        </el-col>
        <el-col :span="4">
            <el-card shadow="hover" style="width:200px">
                <img src="../image/sport.jpg">
                <div style="padding: 5px">
                    <span style="font-size: small">大学体育</span>
                    <div class="bottom clearfit">
                        <el-button onclick="window.location.href='display.html'" type="button" class="button">查看</el-button>
                    </div>
                </div>
            </el-card>
        </el-col>
        <el-col :span="4">
            <el-card shadow="hover" style="width:200px">
                <img src="../image/HTML5.jpg">
                <div style="padding: 5px">
                    <span style="font-size: small">HTML5</span>
                    <div class="bottom clearfit">
                        <el-button onclick="window.location.href='display.html'" type="button" class="button">查看</el-button>
                    </div>
                </div>
            </el-card>
        </el-col>
    </el-row>

    </br>
    </br>
    </br>
    <h2>计算机基础</h2>
    <el-row :gutter="12">
        <el-col :span="4">
            <el-card shadow="hover" style="width:200px">
                <img src="../image/digital.png">
                <div style="padding: 5px">
                    <span style="font-size: small">数字图像处理</span>
                    <div class="bottom clearfit">
                        <el-button onclick="window.location.href='display.html'" type="button" class="button">查看</el-button>
                    </div>
                </div>
            </el-card>
        </el-col>
        <el-col :span="4">
            <el-card shadow="hover" style="width:200px">
                <img src="../image/ITbase.png">
                <div style="padding: 5px">
                    <span style="font-size: small">大学信息技术基础</span>
                    <div class="bottom clearfit">
                        <el-button onclick="window.location.href='display.html'" type="button" class="button">查看</el-button>
                    </div>
                </div>
            </el-card>
        </el-col>
        <el-col :span="4">
            <el-card shadow="hover" style="width:200px">
                <img src="../image/network.png">
                <div style="padding: 5px">
                    <span style="font-size: small">网络技术与应用</span>
                    <div class="bottom clearfit">
                        <el-button onclick="window.location.href='display.html'" type="button" class="button">查看</el-button>
                    </div>
                </div>
            </el-card>
        </el-col>
        <el-col :span="4">
            <el-card shadow="hover" style="width:200px">
                <img src="../image/img.png">
                <div style="padding: 5px">
                    <span style="font-size: small">服务计算与服务生态系统</span>
                    <div class="bottom clearfit">
                        <el-button onclick="window.location.href='display.html'" type="button" class="button">查看</el-button>
                    </div>
                </div>
            </el-card>
        </el-col>
        <el-col :span="4">
            <el-card shadow="hover" style="width:200px">
                <img src="../image/MATLAB.png">
                <div style="padding: 5px">
                    <span style="font-size: small">科学计算与MATLAB语言</span>
                    <div class="bottom clearfit">
                        <el-button onclick="window.location.href='display.html'" type="button" class="button">查看</el-button>
                    </div>
                </div>
            </el-card>
        </el-col>
        <el-col :span="4">
            <el-card shadow="hover" style="width:200px">
                <img src="../image/HTML5.jpg">
                <div style="padding: 5px">
                    <span style="font-size: small">HTML5</span>
                    <div class="bottom clearfit">
                        <el-button onclick="window.location.href='display.html'" type="button" class="button">查看</el-button>
                    </div>
                </div>
            </el-card>
        </el-col>

    </el-row>




</div>
</body>
<script src="../js/vue.js"></script>
<script src="../js/axios.min.js"></script>
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<!--<script type="text/javascript" src="../js/jquery.min.js"></script>-->
<!--<script src="../js/axios-0.18.0.js"></script>-->
<script>
    new Vue({
        el: '#app',
        data: {
            return:{
                currentPage: 5,
                pagesize: 100,
            }
        },
        methods:{
            handleCurrentChange(val) {
                console.log(`当前页: ${val}`);
            }
        }
    })
</script>
</html>